class ButtonsTagLib {
    def buttonConsultar={attrs->
        def accion=''
        if(attrs.accionButton){
            accion='onclick="'+attrs.accionButton+'"'
        }        
        out << '<div class="boton" align="center"><input type="hidden" value="0" name="flagPaginacion"><input type="submit" '+accion+' class="B_CONSULTAR" value="'+message(code:'consulta.button.consultar')+'" /></div>'
    }
    def button={attrs->
        if(attrs.clase){
            def text="Procesar"
            if(attrs.textoBoton){
                text=attrs.textoBoton
            }
            def type='button'
            if(attrs.type){
                type=attrs.type
            }
            def accion=''
            if(attrs.accion){
                accion='onclick="'+attrs.accion+'"'
            }
            def id=''
            if(attrs.id){
                id='id='+attrs.id
            }
            out << '<div align="center" class="boton"><input '+id+' type="'+type+'" '+accion+' class="B_'+attrs.clase.toUpperCase()+'" value="'+text+'" /></div>'
        }else{
            out <<'Incorrecta definicion para este tag "button"'
        }
    }

}
